Dynamically adjustable cyclic redundancy code types

ABSTRACT

Aspects of the invention include monitoring frames of bits received at a receiver for transmission errors. At least one of the received frames of bits includes cyclic redundancy code (CRC) bits for a first type of CRC check. It is determined whether a change in transmission errors has occurred in the received frames by performing the first type of CRC check based at least in part on the received CRC bits and payload bits in the received frames. A change from the first type of CRC check to a second type of CRC check is initiated at the receiver based at least in part on determining that a change in transmission errors has occurred. The change is synchronized between the receiver and the transmitter, and performed in parallel with functional operations performed by the receiver.

BACKGROUND

Embodiments of the present invention relate in general to cyclic redundancy codes (CRCs) and more specifically to dynamically adjustable CRC types.

A CRC is an error-detecting code that is commonly used in digital networks and storage devices to detect errors in transmitted data. In transmissions involving packet or frame based protocols a CRC is often used to protect the data that is being carried within a packet or frame of bits. A short check value (e.g., a CRC), is attached to blocks of data entering these systems. The short check value is derived using contents of the data blocks and can be calculated, for example, based on the remainder of a polynomial division of the contents of the data blocks.

In many applications it is sufficient to simply use a CRC as a means of determining success or failure in delivering a frame from a source to a destination. However, in some applications it is desirable to know failure information about the packet, or frame. The need for additional failure information often leads to the use of more complex CRCs which provide either improved error rate detection and/or isolation metrics. In cases where applications are characterized as having high performance requirements, payload bandwidth can suffer from the presence of robust CRC protection because more CRC bits are required to provide more robust CRC protection and the ratio of payload bits to CRC bits in a frame transmission decreases. During system initialization, compromises are often made in balancing high bandwidth and reliability when selecting a level of CRC protection for transmitted data.

SUMMARY

Embodiments of the present invention include methods, systems, and computer program products for dynamically adjustable cyclic redundancy code (CRC) types. A non-limiting example method includes monitoring bits received at a receiver via a communication channel for transmission errors. The monitoring includes receiving frames of bits from a transmitter communicatively coupled to the receiver via the communication channel. At least one of the received frames includes CRC bits for a first type of CRC check. It is determined whether a change in transmission errors has occurred in the received frames. The determining includes performing the first type of CRC check based at least in part on the received CRC bits and payload bits in the received frames. A change from the first type of CRC check to a second type of CRC check is initiated at the receiver based at least in part on determining that a change in transmission errors has occurred in the received frames. The change is synchronized between the receiver and the transmitter, and performed in parallel with functional operations performed by the receiver.

Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention. For a better understanding of the invention with the advantages and the features, refer to the description and to the drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The specifics of the exclusive rights described herein are particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other features and advantages of the embodiments of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:

FIG. 1 depicts a high level block diagram of a system for data transmission in accordance with one or more embodiments of the present invention;

FIG. 2 depicts a high level block diagram of a system for data transmission in accordance with one or more embodiments of the present invention;

FIG. 3 depicts a block diagram of a system that includes a distributed memory buffer in accordance with one or more embodiments of the present invention;

FIG. 4 depicts a block diagram of a system that includes a unified memory buffer in accordance with one or more embodiments of the present invention;

FIG. 5 depicts a distributed memory buffer structure that implements cyclic redundancy (CRC) protected eight beat frames in accordance with one or more embodiments of the present invention;

FIG. 6 depicts a distributed memory buffer structure that implements payload only frames in accordance with one or more embodiments of the present invention;

FIG. 7 depicts a timing diagram of a dynamically adjustable CRC rate in accordance with one or more embodiments of the present invention;

FIG. 8 depicts a timing diagram of a dynamically adjustable CRC type in accordance with one or more embodiments of the present invention;

FIG. 9 depicts a flow diagram of CRC transmit circuitry in accordance with one or more embodiments of the present invention;

FIG. 10 depicts a flow diagram of CRC receive circuitry in accordance with one or more embodiments of the present invention;

FIG. 11 depicts a flow diagram of a transmit side of adjusting a CRC during run time in accordance with one or more embodiments of the present invention;

FIG. 12 depicts a flow diagram of a receive side of adjusting a CRC during run time in accordance with one or more embodiments of the present invention; and

FIG. 13 is a block diagram of a computer system for implementing some or all aspects of dynamically adjustable CRC types in accordance with one or more embodiments of the present invention.

The diagrams depicted herein are illustrative. There can be many variations to the diagram or the operations described therein without departing from the spirit of the invention. For instance, the actions can be performed in a differing order or actions can be added, deleted or modified. Also, the term “coupled” and variations thereof describes having a communications path between two elements and does not imply a direct connection between the elements with no intervening elements/connections between them. All of these variations are considered a part of the specification.

In the accompanying figures and following detailed description of the disclosed embodiments, the various elements illustrated in the figures are provided with two or three digit reference numbers. With minor exceptions, the leftmost digit(s) of each reference number correspond to the figure in which its element is first illustrated.

DETAILED DESCRIPTION

Embodiments of the present invention are directed to the use of dynamically adjustable cyclic redundancy codes (CRCs) in computer systems to provide error detection and error isolation for data transmissions.

In accordance with one or more embodiments of the present invention, the ratio of the number of CRC bits to the number of payload bits transmitted over a unit of time in a packetized or frame based protocol is dynamically adjusted to provide different levels of error detection and error isolation. Detected changes in error rates and/or error types can initiate the dynamic adjustment of the ratio. One or more embodiments of the present invention provide a transition from one CRC rate to another while functional operations are performed by the system.

In accordance with one or more embodiments of the present invention, the type of CRC protection applied to a payload of information transmitted over a unit of time in a packet or frame based protocol is dynamically adjusted to provide different levels of error detection and error isolation. Detected changes in error rates and/or error types can initiate the dynamic adjustment of the type of CRC protection applied. One or more embodiments of the present invention provide a transition from one CRC code to another CRC code while functional operations are performed by the system.

As used herein, the term “functional operations” can refer to all or a portion of a host transmitting instructions (downstream) to read from or to write to memory or storage devices, the receiving device executing the instructions, and then transmitting a response (upstream) back to the host. The upstream responses may be in the form of completion responses or error indicators. Upstream data can also be transmitted as part of functional operations, for example, in the case of fetch operations. Functional operations can also refer to more extensive operations such, but not limited to, those performed by field-programmable gate arrays (FPGAs), cognitive engines, and graphics processing units (GPUs) using, for example, the OpenCAPI™ protocol. In addition to simple memory read and write operations, these devices assist the processor by offloading and performing coherent modifications of large quantities of data such as, but not limited to, images and databases.

The term “packet” refers to a formatted unit of data transmitted between an origin and a destination on the Internet or any other packet-switched network. A packet typically includes user bits (also referred to herein as a “payload”) and control information that is used to deliver the payload. Examples of packet based protocols include, but are not limited to, Internet Protocol and OpenCAPI. The term “frame” refers to data that is transmitted between an origin and a destination as a unit. A frame can be transmitted serially (bit by bit) and can include frame synchronization bits to indicate the beginning and end of the payload data within a frame. Examples of frame based protocols include, but are not limited to, Ethernet and Peripheral Component Interconnect (PCI). It should be noted that that terms packet and frame are synonymous and that most protocols include multiple “packets” of information that together comprise a “frame.” The terms “packet” and “frame” are used interchangeably herein to refer to data (e.g., payload bits and/or CRC bits) that is transmitted as a unit from an origin to a destination. In an embodiment, the origin is a memory buffer and the destination is a host computer, or memory controller. In another embodiment, the origin is a host computer, or memory controller, and the destination is a memory buffer. In a further embodiment, the origin is a transmitter in a first network location and the destination is a receiver in a second network location.

Depending on the channel transmission medium, it is not uncommon to be able to transmit packets error free for very long periods of time and then occasionally observe a small number of bit errors for a temporary period of time. This implies that most of the time bandwidth is being unnecessarily sacrificed for CRC bits. However, since it is not possible to predict when (or if) this temporary error window will occur, and leaving the packets completely unprotected is typically deemed unacceptable, the de-facto standard is to accept some type of bandwidth overhead penalty by using CRC bits.

According to one or more embodiments of the present invention, the ratio of payload bits to CRC protection bits is dynamically adjusted depending on actual bit error rates (BERs) encountered during data transmission. Detected changes in a BER can initiate the dynamic adjustment of the ratio of payload bits to CRC bits. Dynamic adjustment of the CRC rate can be performed in a high reliability, availability, and serviceability (RAS) environment where it is deemed critical to perform various types of fail isolation.

One or more embodiments of the present invention allow for the use of agnostic protocols when the channel that the data is being transmitted over connects two autonomous entities capable of influencing data coherency. In one or more embodiments of the present invention, the host computer, or host, is not aware of the type of memory connected to it (e.g. DDR3 or DDR4). The host, for example, sends sequences of reads and writes to a memory buffer and expects the memory buffer to process them in a coherent manner. If, for example, there were no CRC protection and a command was missed (or misinterpreted) then there is a risk of not detecting a read versus write collision, and thus updating or returning data in a non-coherent fashion. This example highlights the importance of proper CRC protection, especially in a high RAS environment.

One or more embodiments of the present invention provide the ability to scale back CRC protection in favor of maximizing payload, to monitor the transmissions for errors, and to elevate the level of CRC protection commensurate to an observed error rate. Programmable registers can be located on both sides of the transmission interface to denote how many consecutive frames contain only a payload (i.e., no CRC bits), and a frame containing CRC bits is transmitted after the specified number of consecutive payload-only frames.

According to one or more embodiments of the present invention, the type of CRC is dynamically adjusted based on factors such as BERs and/or error isolation goals. One or more embodiments of the present invention utilize a two-dimensional CRC strategy that employs a plurality of CRC codes optimized for either frame isolation or lane isolation. Packets can initially start out with a frame based protection CRC which optimizes the CRC bits to identify any frames that have data errors. This can prevent an autonomous memory controller from creating a data integrity situation by acting on an erroneous frame.

Upon detection of a bad frame, a recovery sequence can be enacted to identify the bad frame and to have the transmitting side (e.g., the host) determine whether the bad frame and any subsequent frames require retransmission. In accordance with one or more embodiments of the present invention, a CRC control module, which may include a frame-based register, is used to dynamically elevate the CRC rate (i.e., the ratio of payload bits to CRC bits) and also to switch the CRC code to a lane isolation code based on the premise that the error rate is frequent enough such that upon resuming normal traffic it is now desirable to isolate which lane is at fault. This presents an opportunity to perform lane steering in topologies that support lane steering. By using this two-dimensional CRC strategy, a single frame can carry a frame detect CRC capable of detecting any bad frame even over a very long stream of contiguous payload-only frames. Only when errors occur are the CRC bits re-purposed to focus on lane isolation which may necessitate transmitting fewer consecutive payload-only frames before performing the CRC check.

In accordance with one or more embodiments of the present invention, a plurality of CRCs which might be customized for different types of transmissions or variable size interfaces are utilized. So, in addition to simply switching between a frame detection CRC and a lane isolation CRC, one or more embodiments of the present invention permit switching between a plurality of different CRCs (e.g., lane based, frame based, beat based, etc.) depending on a format and structure of the payload. This can be particularly advantageous in the cases where the interfaces in each direction are asymmetrical and have different widths. In addition, certain interfaces also allow for the width to vary depending on operating parameters such as, but not limited to: operational modes and power savings features, thereby benefiting from a CRC code tailored to match the current interface configuration.

Turning now to FIG. 1, a high level block diagram of a system 100 for data transmission is generally shown in accordance with one or more embodiments of the present invention. FIG. 1 depicts a transceiver 102 having an interface 106 to a communication channel 112 for transmitting data to another transceiver 104 that also has an interface 106 to the communication channel 112. The communication channel 112 can be implemented as two unidirectional buses (one bus in each direction, each bus checked with CRC), or it can be implemented as a bi-directional bus with CRC checking in each direction. In an embodiment of the present invention, the communication channel 112 includes several wires or data bit lanes for transmitting data bits in parallel. In another embodiment of the present invention, the communication channel 112 is made up a single data bit lane and bits are sent one at a time in a serial manner. As shown in FIG. 1, errors in the data transmitted across the communication channel 112 are detected using CRC 108. In accordance with an embodiment of the invention, either transceiver 102 or transceiver 104 can act as a transmitter of data or as a receiver of data across the communication channel 112. In an embodiment of the present invention, CRC control instructions, and optionally a programmable register, to perform a CRC check and modify the CRC (e.g., rate or type) as described herein are located in and/or executed by each of the transceivers 102 104. The system 100 shown in FIG. 1 is an example of a system having a single communication channel between a transmitter of frames of bits and a receiver of the frames of bits. The number and/or type of wires or data lanes in each direction across the communication channels may be different.

In an embodiment of the present invention, the system 100 shown in FIG. 1 is a communication system for sending frames between a transmitter and a receiver. In an embodiment, the communication channel 112 includes a physical link that is provided between the transmitter and receiver. The physical link can include one or more wires connecting the transmitter and receiver by way of a cable, backplane (or planar board or motherboard), connectors, cards (or expansion cards), ball grid array (BGA) packaging, flip chip packaging, etc. In another embodiment, a wireless link is provided between the transmitter and the receiver and wireless communications that employ a packet protocol whose transmission is CRC protected are implemented.

In an embodiment of the present invention, the system 100 shown in FIG. 1 is a memory subsystem such as that shown in FIG. 4 below where transceiver 102 is implemented by a host computer, or memory controller, transceiver 104 is implemented by a unified memory buffer, and communication channel 112 is implemented by a high speed memory channel.

In one or more embodiments of the present invention, the communication channel 112 is unidirectional and one or both of transceiver 102 and transceiver 104 are implemented by a transmitter and/or a receiver.

Turning now to FIG. 2, a high level block diagram of a system 200 for data transmission is generally shown in accordance with one or more embodiments of the present invention. FIG. 2 depicts a transceiver 202 having two different interfaces 212 214 to three different communication channels 220 222 224 for transmitting data to another transceiver 204 that has corresponding interfaces 216 218 to the three different communication channels 220 222 224. As shown in the example embodiment in FIG. 2, communication channels 222 224 are the same type of communication channels and they are different than the type of communication channel 220. Differences can include but are not limited to: speed; bi-directional or unidirectional; number or type of wires; number or type of data lanes; type of data; and/or RAS requirements.

As shown in FIG. 2, transceiver 202 includes interface one 212 to communicate with communication channel 220 and transceiver 204 includes interface one 216 to communicate with communication channel 220. Interface one 212 on transceiver 202 and interface one 216 on transceiver 204 can both include CRC control instructions to communicate as described herein to coordinate a rate and type of the CRC 206 on communication channel 220. Also as shown in FIG. 2, transceiver 202 includes interface two 214 to communicate with transceiver 204 via communication channel 222 and interface two 218 to communicate with transceiver 204 via with communication channel 222. Interface two 214 on transceiver 202 and interface two 218 on transceiver 204 can include CRC control instructions to communicate as described herein to coordinate a rate and type of the CRC 208 on communication channel 222. Also as shown in FIG. 2, transceiver 202 includes interface two 214 to communicate with communication channel 224 and transceiver 204 includes interface two 218 to communicate with communication channel 224. Interface two 214 on transceiver 202 and interface two 218 on transceiver 204 can include CRC control instructions to communicate as described herein to coordinate a rate and type of the CRC 208 on communication channel 224.

In an embodiment of the present invention, one or more of communication channels 220 222 224 includes several wires or data bit lanes for transmitting data bits in parallel. In an embodiment of the present invention, one or more of communication channels 220 222 224 are made up a single data bit lane and bits within a frame are sent one at a time in a serial manner. As shown in FIG. 2, errors in the data transmitted across communication channel 220 are detected using CRC 206 and errors in the data transmitted across communication channels 222 224 are detected using CRC 208.

In accordance with an embodiment of the invention, transceiver 102 or transceiver 104 can act as a transmitter of data or as a receiver of data across the communication channels 220 222 224. In an embodiment of the present invention, CRC control instructions to perform a CRC check and to modify the CRC (e.g., rate or type) as described herein are located in and/or executed by each of the transceivers 202 204. The system 200 shown in FIG. 2 is an example of a system having multiple different types of communication channels between a transmitter of frames of bits and a receiver of the frames. The multiple communication channels can be of the same or different types and the CRC codes can be the same (e.g., CRC rate, CRC type) or they can be different.

In an embodiment of the present invention, the system 200 shown in FIG. 2 is a communication system for sending frames between a transmitter and a receiver. In an embodiment, the communication channels 220 222 224 include at least two different types of links that are provided between the transmitter and the receiver. One or more of the links can be a physical link that can include one or more wires connecting the transmitter and receiver by way of a cable, backplane (or planar board or motherboard), connectors, cards (or expansion cards), ball grid array (BGA) packaging, and/or flip chip packaging, etc. One or more links could also be a wireless link provided between the transmitter and the receiver, supported by wireless communications that employ a packet protocol whose transmission is CRC protected.

In an embodiment of the present invention, the system 200 shown in FIG. 2 represents a single logical interface where interface one 212 is used to convey frames of command/address/control bits and interface two 214 is used to convey frames of data bits. In an embodiment of the present invention, each link shown in FIG. 2 is logically discrete with communication channel 220 implemented with a cabled connection, and communication channels 222 224 are implemented as traces on a backplane connecting transceivers on chips.

In an embodiment of the present invention, the system 200 shown in FIG. 2 is a memory subsystem such as that shown in FIG. 3 below where transceiver 202 is implemented by a host computer, or memory controller, transceiver 204 is implemented by a distributed memory buffer, and communication channels 220 220 224 are implemented by high speed memory channels.

In one or more embodiments of the present invention, one or both of transceiver 202 and transceiver 204 are implemented by a transmitter and/or a receiver. In one or more embodiments of the present invention, two or more of interface one 212 and interfaces two 214 in transceiver 202 are implemented by different types of transmitters, receivers and/or transceivers. In one or more embodiments of the present invention, two or more of interface one 216 and interfaces two 218 in transceiver 204 are implemented by different types of transmitters, receivers and/or transceivers.

In one or more embodiments of the present invention, one or more of the communication channels 220 222 224 is unidirectional and one or both of transceiver 202 and transceiver 204 are implemented by a transmitter and/or a receiver.

Turning now to FIG. 3, a block diagram of a system 300 that includes a distributed memory buffer 316 is generally shown in accordance with one or more embodiments of the present invention. The distributed memory buffer 316 shown in FIG. 3 includes dynamic random access memories (DRAMS) 310, register clock drivers (RCDs) 308, data chips (DCs) 306, and an address/command chip (AC) 304. Each of the DCs 306 and the AC 304 include a CRC control module 302 for performing all or a subset of the CRC processing described herein. The logic in the CRC control modules 302 can vary based on different requirements (e.g., frame isolation, lane isolation) and different physical and/or logic differences between the channels. For example, at a given point in time, the logic in the CRC control module 302 located on the AC 304 can be different than the logic in the CRC control module 302 located on one or more of the DCs 306. Also, at a given point in time, the logic in the CRC control module 302 located on one DC 306 can be different than the logic in the CRC control module 302 located on another of the DCs 306. The CRC control module 302 may also include one or more registers for storing CRC related data such as, but not limited to, CRC rate and an identifier of a CRC type currently being used. Logic (e.g., CRC control module 302) to perform a CRC check and logic to modify the CRC (e.g., rate or type) as described herein are located in and/or executed by both the distributed memory buffer 316 and the host computer 326.

FIG. 3 includes an address/control channel 324 that uses CRC 320 for error detection. The address/control channel 324 is used to transmit address and control information between address/control ports on the distributed memory buffer 316 and address/control data ports 314 on the host computer 326. The address/control channel 324 is also used to transmit responses from the AC 304 to the host computer 326, with CRC included on the return path. Also shown in FIG. 3 are several data channels 322 that use CRC 318 for error detection, the data channels 322 are used to transmit data between the data ports on the distributed memory buffer 316 and data ports 312 on the host computer 326. In accordance with one or more embodiments of the present invention, at any given point in time different CRC rates and types of CRCs may be used on all or a subset of the data channels 322 and address/control channel 324. Pairs of CRC control modules 302 (one on the distributed memory buffer 316 and the other on the host computer 326) can be used to synchronize, or coordinate, CRC rates and types across each of the channels 322 324. In an embodiment each of the data channels 322 is four lanes and the address/control channel 324 is eight lanes.

In accordance with one or more embodiments of the present invention, the address/control channel 324 and the data channels 322 are implemented by a serializer/deserializer (HSS) channel that transports frames of data in both directions. As shown in the embodiment of FIG. 3, the distributed memory buffer structure includes command and address interfaces with the AC 304, and data busses interfacing with a plurality of DCs 306.

In accordance with one or more embodiments of the present invention, the data channels 322 connected to the DCs 306 can contain as few as one or two data lanes. In this case, lane isolation is much simpler and potentially already taken care of by the error code correction (ECC) protection that accompanies the data. In the distributed memory buffer structure shown in FIG. 3, the frames interfacing with the AC 304 may require CRC protection while CRC protection might be optional for the frames containing data bits interfacing with the DCs 306. In addition, this type of structure may produce frames with only eight or sixteen bits available to use as CRC bits, which can be sufficient to protect against a reasonably sized stream of contiguous payload-only frames. One or more embodiments of the present invention provide the flexibility to adapt to any structure and to allow a system policy to customize the rate of CRC versus payload as well as whether to employ frame based CRC checking, lane isolation CRC checking, or any combination therein.

Turning now to FIG. 4, a block diagram of a memory system 400 that includes a memory subsystem 416 with a unified memory buffer 404 is generally shown in accordance with one or more embodiments of the present invention. The memory subsystem 416 shown in FIG. 4 includes DRAMS 410, a voltage regulator 412, and a unified memory buffer 404. The unified memory buffer 404 shown in FIG. 4 includes a CRC control module 402 for performing all or a subset of the CRC processing described herein. The CRC control module 402 may also include one or more registers for storing CRC related data such as, but not limited to, CRC rate and an identifier of a CRC currently being used. Logic (e.g., CRC control module 402) to perform a CRC check and logic to modify the CRC (e.g., rate or type) as described herein are located in and/or executed by both the memory subsystem 416 and processor 420. FIG. 4 includes a bi-directional interface address/control/data channel 422 that uses CRC 418 for error detection. In an embodiment, address/control/data channel 422 is implemented as two unidirectional buses (one bus in each direction, each bus checked with CRC). In an embodiment address/control/data channel 422 is implements as a bi-directional bus, with CRC checking in each direction. The address/control/data channel 422 is used to transmit address and control information between the unified memory buffer 404 and an address/control/data bus 414 on the processor 420 (e.g., host computer or memory controller). A pair of CRC control modules 402 (one on the unified memory buffer 404 and the other on the processor 420 can be used to synchronize, or coordinate, CRC rates and types across the address/control/data channel 422. In an embodiment of the present invention, the address/control/data channel 422 includes eight lanes in each direction with the data and address/control lanes combined. In the memory subsystem 416 shown in FIG. 4, CRC protection may be required for all of the frames of data bits.

In an embodiment, frames to be transmitted can be arranged in an eight-bit by eight-bit matrix in a system where eight high-speed lanes each convey eight beats of information down a channel. Thus, in this example each frame transmission is capable of sending a maximum of sixty-four bits of payload. If the payload is made up of sixty-four bytes of data, then eight such frames would need to be transferred. If the channel is running in a high performance application at, for example, ten Gigabits per second (Gbps), then the sixty-four bytes would be transmitted in 6.4 nanoseconds (ns). However, the payload as described would be unprotected and exposed to error. A common protection scheme includes embedding some number of CRC bits in each frame. For example, an eleven bit CRC can provide the ability to detect most types of errors on any of the eight lanes however, the addition of CRC bits reduces the payload space to fifty-three bits in each packet. The addition of eleven CRC bits requires an additional two frames to deliver all sixty-four bytes, which increases the delivery time of that same data from 6.4 ns to 8 ns. Improved error rate detection and error isolation is possible by using more robust CRC codes which can consume thirty or more bits per frame which would cut the data bandwidth almost in half.

Turning now to FIG. 5, a distributed memory buffer structure 500 that implements CRC protected eight beat frames is generally shown in accordance with one or more embodiments of the present invention. The distributed memory buffer structure 500 shown in FIG. 5 includes an address/command buffer 502 that is eight bits wide and has eight rows (beats), and that interfaces to an AC, such as AC 304 in FIG. 3. The address/command buffer 502 shown in FIG. 5 includes six command bits (labeled C0-C5), eight response bits (labeled T0-T7), thirty-eight address bits (labeled A0-A37) and twelve CRC bits (labeled P1-P11). The distributed memory buffer structure 500 shown in FIG. 5 also includes eighteen data buffers 504 that each are four bits wide and have eight rows (beats), and that interface to DCs, such as DCs 306 in FIG. 3. The data buffers 504 shown in FIG. 5 each include twenty-two data bits (labeled D0-D21 and D374-D396), and ten CRC bits (labeled P0-P9). The CRC bits shown in FIG. 5 consume space in the frames that could be used for additional command, address, response, and/or data payload bits.

Turning now to FIG. 6, a distributed memory buffer structure 600 that implements payload only eight beat frames is generally shown in accordance with one or more embodiments of the present invention. The distributed memory buffer structure 600 shown in FIG. 6 includes an address/command buffer 602 that is eight bits wide and has eight rows (beats), and that interfaces to an AC, such as AC 304 in FIG. 3. The address/command buffer 602 shown in FIG. 5 includes six command bits (labeled C0-C5), eight response bits (labeled T0-T7), forty-two address bits (labeled A0-A41) and eight bits available for additional payload. The distributed memory buffer structure 600 shown in FIG. 6 also includes eighteen data buffers 604 that each are four bits wide and have eight rows (beats), and that interface to DCs, such as DCs 306 in FIG. 3. The data buffers 604 shown in FIG. 6 each include thirty-two data bits (labeled D0-D31 and D544-D575). The distributed memory buffer structure 600 shown in FIG. 6 does not include any CRC bits. This can result in more payload bits being sent. For example, as shown in FIG. 6, five-hundred and seventy-six data bits can be transferred in the same number of frames as the three-hundred and ninety-six data bits shown in the distributed memory buffer structure 500 of FIG. 5.

In accordance with one or more embodiments of the present invention, upon initializing the communication channel between a transmitter and a receiver, the interface may be programmed with an eight to one ratio, meaning that eight payload-only frames can be transmitted before sending a ninth frame that includes CRC bits. During the initialization process, a common reference point can be established as the basis for counting frames. As long as the communication channel remains error free, this allows sixty-four bytes of data to be transmitted in the minimum required time using an eight-by-eight frame. Referring to the aforementioned eight-by-eight frame structure, this would allow for a sixty-four bit CRC to occupy the ninth frame. Such a code can be extremely robust, providing protection for up to thirteen bit errors, any odd error pattern, and any burst of errors shorter than sixty-four. The probability of failing to detect any other type of random event data error pattern can be about ½⁶³. This exemplifies the potential for allowing high bandwidth bursts of data or transactions while still permitting enterprise level RAS protection.

Turning now to FIG. 7, a timing diagram 700 of a dynamically adjustable CRC rate is generally shown in accordance with one or more embodiments of the present invention. Exemplary embodiments of the present invention provide CRC timing options outside of the typical three inflexible design points of maximum performance (no CRC checking), maximum RAS (CRC checking on every transmission), and a fixed arbitrary compromise (always check every “X” number of frames). One or more embodiments of the present invention provide for dynamic adjustment between the two extremes of CRC checking on every transmission and no CRC checking based on an error rate currently observed during system operation. Dynamic balancing of RAS and performance is performed based on real-time BER feedback. In addition, different system topologies can adapt to different solutions and even systems within a given topology can have unique solutions. For example, a normally stable system topology could be experiencing an unusually high BER on one particular system, and the CRC rate can be increased on the system dynamically while it is experiencing a high BER. The CRC rate can be decreased as more time passes since a last error (or a specified number of errors) was detected.

Timing diagram 702 shows an example of an eight to one payload to CRC ratio which can be implemented by one or more embodiments of the present invention. As shown in FIG. 7, frames labeled “C” contain one or more CRC bits. As shown in the timing diagram 702, a CRC error is detected by the second CRC check. Upon detection of the CRC error, CRC control logic (e.g., CRC control module 302) can be used to perform BER analysis and to dynamically change to a new ratio. Depending on implementation and application factors a four to one ratio such as that shown in timing diagram 704 can be applied, or a two to one ratio such as that shown in timing diagram 706 can be applied, or a maximum RAS that includes a one to one ratio such as that shown in timing diagram 708 can be applied. Different types of interface and different memory channels can enact different policies. Thus, a command/address interface on a communication bus can have a different policy (e.g. CRC ratio) than a data interface on a communication bus.

Turning now to FIG. 8, a timing diagram 800 of a dynamically adjustable CRC code is generally shown in accordance with one or more embodiments of the present invention. Exemplary embodiments of the present invention provide dynamic exchanging of CRC codes to optimize the type of error detection or error isolation. An embodiment can default to a CRC optimized to detect a bad frame, and upon detection of an error can switch to a CRC optimized to isolate a bad channel lane. This can yield a better payload bit to CRC bit ratio than always using the number of CRC bits required to simultaneously cover all failure types. In accordance with one or more embodiments, the dynamic adjustment of the type of CRC is used in conjunction with the adjustable CRC rate described herein. In an embodiment, the system can default to using a frame isolation code every thirty-two (or other number based on implementation) of frames, and then upon detecting an error switch to checking every four frames but alternate between using frame and lane isolation codes. The system could return to checking every sixteen frames and then every thirty-two frames if errors are no longer detected.

The frames 802 in the timing diagram 800 of FIG. 8 show an example of a four to one payload to CRC ratio which can be implemented by one or more embodiments of the present invention. The frame labeled “C1” 810 includes CRC bits for a first type of CRC that isolates, for example, frames having errors and the frame labeled “C2” includes CRC bits for a second type of CRC that isolates, for example, lanes having errors. Frames 808 represent a window where the CRC is switching from the first type of CRC (C1) to the second type of CRC (C2). As shown in FIG. 8, a CRC error 804 is detected by the first type of CRC (C1) and a recovery window 806 is enacted to dynamically transition to a second type of CRC (C2). The ability to switch to multiple CRC codes allows the system to balance the desired level of protection between, for example, frame and lane isolation.

One or more embodiment of the present invention works in conjunction with positive acknowledge protocols such that anytime a frame is CRC checked, an acknowledge is returned in the opposite direction. This provides continuous feedback to the transmitting side which allows for more efficient use of retry or replay resources which must be allocated to retransmit bad frame sequences. For example, in the absence of an acknowledge, even if the receiving side checks the CRC after every eight payload-only frames, the transmitting side needs to hold on to any subsequent frames until it knows that the time for an error response has passed. If an asynchronous error indication mechanism is used, it can be many more frames of time for the response to reach the transmitter. However, an acknowledge based protocol ensures a guaranteed receipt of an acknowledge within a fixed time, thereby allowing the transmitting side to free up its resources. This concept also pertains to idle frames which are considered payload, so even if a stream of idle frames is being transmitted, the positive acknowledge after the CRC checking allows for potential resource to free up.

One or more embodiments of the present invention include a pliable CRC code that takes on different configurations depending on the physical topology of the interface. For example, an interface may include “N” lanes where not all of them are in use at all times. A subset might be dynamically disabled to save power if transactions can be conveyed that don't require them. At a later time the system may begin servicing operations which require all N lanes thereby powering or enabling them. One or more embodiments of the present invention seek to accommodate such a flexible interface by allowing for dynamic reconfiguration of the CRC code to appropriately cover all N lanes or just a subset of the N lanes. Since covering fewer lanes can translate into requiring fewer CRC bits, it presents an opportunity to select a more efficient code that saves CRC space and provides for more payload bits (thereby improving overall bandwidth).

In accordance with one or more embodiments, the control of the dynamic CRC adjustment can be always sourced from the same host (regardless of which interface direction is experiencing the problem), or it can be driver side based. In other words, if the system policy prefers, it could always be the host (e.g., memory controller) that determines when to switch the CRC ratio and/or type of CRCs and also the host that enacts the recovery process, regardless of whether the error occurred on the downstream channel from the host to the memory subsystem or on the upstream channel from the memory subsystem to the host. In this embodiment, the memory subsystem can always be told to either update its receiving CRC checking circuitry in response to downstream errors, or to update its CRC generation circuitry in response to upstream errors. An alternate embodiment of the present invention allows for the driving side of each interface to always determine whether an update is necessary and to enact the recovery process to receiving side. By allowing either means of adjustment, disparate elements communicating via an open standard protocol can apply one or more embodiments of the present invention.

Turning now to FIG. 9, a flow diagram 900 of CRC transmit circuitry is generally shown in accordance with one or more embodiments of the present invention. The processing shown in FIG. 9 can be performed by CRC control circuitry such as CRC control module 302 in FIG. 3 or CRC control module 402 in FIG. 4. The frame generator 902 creates payload content of a frame 904 to be transmitted across a communication channel. The rate control 908 determines the CRC rate, or how often to interject a CRC into a frame before it is transmitted to a receiver. The CRC compressor 906 determines the type of CRC to be applied to the payload in the frame 904 and it keeps track of what data bits to include when generating the CRC bits (e.g., payload from all frames since last frame with CRC bits, current frame, etc.). The CRC compressor 906 also calculates the CRC bits. The rate control 908 is in communication with the CRC compressor 906 to coordinate the resetting of the CRC and/or other controls, calculations, frame decodes, etc. The CRC bits are input to multiplexor 910 which adds them into a frame for transmission to a receiver across a communication channel when the rate control 908 indicates that the CRC bits should be added (e.g., the PAYLOAD_OR_CRC signal indicates CRC). Otherwise, the multiplexor 910 transmits a frame containing payload data only to the transmission interface for transmission across a communication channel to a receiver.

Turning now to FIG. 10, a flow diagram 1000 of CRC receive circuitry is generally shown in accordance with one or more embodiments of the present invention. The processing shown in FIG. 10 can be performed by CRC control circuitry such as CRC control module 302 in FIG. 3 or CRC control module 402 in FIG. 4. A frame 1002 is received at an interface on a receiver and sent to frame decode 1004 where the CRC bits, if any are extracted and the payload is ready for use by the receiver. The rate control 1010 keeps track of which of the incoming frames 1002 have CRC bits and the CRC compressor 1006 keeps track of the type of CRC currently in use. The rate control 1010 communicates with the frame decode 1004 to indicate, for example, whether a new frame has CRC bits or just payload pits. The frame payload is sent to CRC compressor 1006 where a CRC is calculated based on payload bits in the frame 1002. In addition, the CRC bits are extracted from the frame 1002 and used by the CRC compare 1008 to compare the calculated (actual) CRC bits with the extracted (expected) CRC bits. If the expected CRC bits are not the same as the calculated CRC bits, then an error signal (e.g., CRC_ERROR) is output.

In accordance with one or more embodiments described herein, the CRC rate as modified by rate control logic (e.g., rate control 908, rate control 1010) can be fixed or programmable. In addition, the type of CRC being utilized as modified by the CRC compressor logic (e.g., CRC compressor 906, CRC compressor 1006 can also be fixed or programmable. This can allow for at least three cases: variable rate CRC using a fixed CRC code; fixed rate CRC using an adjustable CRC code; and variable rate CRC using an adjustable CRC code.

In accordance with one or more embodiments of the present invention, if CRC errors are detected, the interface between the receiver and transmitter (e.g., via a CRC control module) enters a recovery sequence which may culminate with the re-programming of the payload bit to CRC bit ratio to implement a higher CRC rate. For example a system policy could determine that after a certain BER, the ratio of eight payload frames to one CRC frame should be changed to four payload frames to one CRC frame, to two payload frames to one CRC frame, or to zero payload frames to one CRC fame (meaning each frame would require embedded CRC). In accordance with one or more embodiments of the present invention, the recovery sequence includes a handshaking protocol to allow both sides of the interface to dynamically change the CRC protection ratio while the channel is still operational. In the case of a memory subsystem, the memory buffer can include an autonomous memory controller responsible for queuing and scheduling operations on behalf of the host. In the event that the BER threshold is exceeded while memory operations are in flight, the CRC ratio can be dynamically altered during functional operation without the need to shut down or re-initialize the memory channel.

Turning now to FIG. 11, a flow diagram 1100 of a transmit side (the “transmitter”) of adjusting a CRC during run time is generally shown in accordance with one or more embodiments of the present invention. The processing shown in FIG. 11 can be performed by CRC control circuitry such as CRC control module 302 in FIG. 3 or CRC control module 402 in FIG. 4. At block 1102 a decision is made to adjust the CRC rate and/or the CRC type. At block 1104, a CRC change command is sent to the CRC control circuitry on the receiving side (the “receiver”) and at block 1106 the transmit side stops sending new work to the receiver. At block 1108 a frame having a deterministic “special” pattern is sent to the receiver to prevent the receiver from starting a new data transmission. In an embodiment, the “special” pattern is continuously sent until the transaction (e.g., the CRC change) is complete. At block 1110, the logic checks to see if a queue empty response has been received from the receiver. The queue empty response indicates that the queues on the receiving side are empty and that the receiver is at a good processing point to make a transition to a new CRC rate and/or type. If the queue empty response has not been received, then processing continues at bock 1112 where any upstream data/responses are processed. In accordance with one or more embodiments of the present invention, the processing at block 1112 includes performing normal responses to memory read and write operations such as, but not limited: to a read (fetch) alert to indicate requested read data is forthcoming, a write done response to indicate the write operation is complete, and an error indicator. Processing then continues at block 1108.

If the queue empty response has been received, as determined at block 1110, then processing continues at block 1114 where the CRC counters are reset. At block 1116 the sending of functional commands to the receiver is resumed, and at block 1118 the new CRC rate and/or type is applied to the next frame of data to be transmitted. The transition to the new CRC rate and/or type is complete and processing of data transmission across the communication channel continues at block 1120.

In accordance with one or more embodiments of the present invention, one of more of the blocks shown in FIG. 11 may have a handshake with the receive side. For example, block 1104 which sends a CRC change command may require an acknowledgment from the receive side that the CRC change command has been received before going forward with stopping the sending of new work in block 1106.

FIG. 12 depicts a flow diagram 1200 of a receive side of adjusting a CRC during run time in accordance with one or more embodiments of the present invention. The processing shown in FIG. 12 can be performed by CRC control circuitry such as CRC control module 302 in FIG. 3 or CRC control module 402 in FIG. 4. At block 1202, an incoming frame is decoded and at block 1204 it is determined whether the frame contains a change CRC command. If the frame does not contain a change CRC command, then processing continues at block 1206 where it is determined whether the frame contains CRC bits. In an embodiment, a count is kept of the number of frames received and this is compared to a number of payload-only frames between each frame that includes CRC bits to identify frames that contain CRC bits. If the frame contains CRC bits, then processing continues at block 1212 where a CRC calculated based on content of the payload is compared to CRC bits contained in the frame. Processing continues at block 1218 where the CRC counters are reset. Processing also continues from block 1212 to block 1214. If the CRC calculated based on content of the payload matches the CRC bits contained in the frame, as determined at block 1214, then processing continues at block 1202. If the expected CRC bits in the frame do not match the CRC bits calculated based on the payload, as determined at block 1214, then block 1216 is performed and a response indicating a CRC error is sent to the transmitter of the frame. Processing continues at block 1202. If the frame contains only payload bits, as determined at block 1206, then processing continues at block 1208 where the functional command is processed (e.g., read from memory, write to memory, etc.) and a partial CRC is computed at block 1210 for future use in calculating the CRC at block 1212.

If the frame does contain a change CRC command, as determined at block 1204, then processing continues at block 1220 where CRC checking is suspended. In accordance with one or more embodiments of the present invention, when the transmit side wants to make a change to the CRC rate and/or type it is performed in a very controlled manner to ensure that any current operations are not disrupted by a botched, or invalid, CRC check. Block 1222 is performed to update the CRC counters (e.g., to a higher CRC rate with fewer consecutive payload-only frames being frames having CRC bits) and or the type of CRC code as specified in the change CRC command. At block 1224, a transition window is entered. In the transmission window, the receive side now expects to only receive “special” frames until such time as it is ready to resume CRC checking with the new code and/or at the new rate.

At block 1226, every incoming frame is checked to make sure that it is a special frame (e.g., the frame generated at block 1108 of FIG. 11). The special frame is an arbitrarily agreed upon (by the transmit side and the receive side) frame designation that will not be mistaken for a functional operation or a normal idle frame. In this manner, the continuous transmission of the special frames provides the receive side the time that it requires to finish processing all pending operations related to frames received by the transmit side. If at any point during the transition window, an error occurs and the receiving sides sees something other than a “special” frame as determined at block 1228, then the receive side reports back an error to the transmitting side at block 1230. For example, if a normal read or write frame slipped in during the transition window, and the receiver processed it, this would result in an unchecked (and potentially untrusted) frame. However, assuming no errors occur and the transmitter (or driving side) continuously sends special frames, then the loop continues as long as the queue on the receiver has frames to process. While the receiver continues to process contents of the queues, it continues to send back responses to the transmitter at block 1234 based on the processing.

When the queues at the receiving side are empty, as determined at block 1232, then the receive side is quiesced and at block 1236, a send CRC change response is sent to the transmit side. When the next non-special frame (i.e., the frame is not a special frame) arrives at block 1238, the receive side checks it (and all subsequent frames) using the new CRC type or at the new CRC rate at blocks 1240 and 1242. At this point, the transmit side and receive side have safely transitioned to a new CRC rate and/or type without disrupting any work in progress, and without having to stop and restart the channel.

In accordance with one or more embodiments, the transmit side described in reference to FIGS. 11 and 12 which initiates the CRC change is a host computer and the receiving side is a memory buffer chip downstream from the host computer. In other embodiments, the CRC change is initiated by the memory buffer chip (the memory buffer is the transmit side) and the receive side is the host computer. In further embodiments that include an intelligent device (e.g., a GPU) attached to a host, either side can initiate a change to the CRC rate and/or type. No matter which side initiates the change, an orderly sequence of stopping the sending of new work, allowing the receive side to finish any pending work, then having the receive side report back when it's ready to begin checking with the new CRC rate and/or type is performed by embodiments. Once this sequence is complete, the transmitter can resume new work using the new CRC rate and/or type.

Processing continues at block 1236 once it is determined at block 1232 that queue of frames received prior to the change CRC command have been processed. A change response (e.g., an empty queue response) is sent to the transmitter at block 1236 and at block 1238 the receiver waits for the next frame. At block 1240, CRC compression is started and at block 1242 the new CRC rate and/or CRC type is set for incoming frames.

Turning now to FIG. 13, a block diagram of a computer system 1300 for implementing some or all aspects of a dynamically adjustable CRC rate and/or CRC type across a communication channel is generally shown according to one or more embodiments of the present invention. The processing described herein may be implemented in hardware, software (e.g., firmware), or a combination thereof. In an exemplary embodiment, the methods described may be implemented, at least in part, in hardware and may be part of the microprocessor of a special or general-purpose computer system 1300, such as a mobile device, personal computer, workstation, minicomputer, or mainframe computer.

In an exemplary embodiment, as shown in FIG. 13, the computer system 1300 includes a processor 1305, memory 1312 coupled to a memory controller 1315, and one or more input devices 1345 and/or output devices 1347, such as peripherals, that are communicatively coupled via a local I/O controller 1335. These devices 1347 and 1345 may include, for example, a printer, a scanner, a microphone, and the like. A conventional keyboard 1350 and mouse 1355 may be coupled to the I/O controller 1335. The I/O controller 1335 may be, for example, one or more buses or other wired or wireless connections, as are known in the art. The I/O controller 1335 may have additional elements, which are omitted for simplicity, such as controllers, buffers (caches), drivers, repeaters, and receivers, to enable communications.

The I/O devices 1347, 1345 may further include devices that communicate both inputs and outputs, for instance disk and tape storage, a network interface card (NIC) or modulator/demodulator (for accessing other files, devices, systems, or a network), a radio frequency (RF) or other transceiver, a telephonic interface, a bridge, a router, and the like.

The processor 1305 is a hardware device for executing hardware instructions or software, particularly those stored in memory 1312. The processor 1305 may be a custom made or commercially available processor, a central processing unit (CPU), an auxiliary processor among several processors associated with the computer system 1300, a semiconductor based microprocessor (in the form of a microchip or chip set), a microprocessor, or other device for executing instructions. The processor 1305 can include a cache such as, but not limited to, an instruction cache to speed up executable instruction fetch, a data cache to speed up data fetch and store, and a translation look-aside buffer (TLB) used to speed up virtual-to-physical address translation for both executable instructions and data. The cache may be organized as a hierarchy of more cache levels (L1, L2, etc.).

The memory 1312 may include one or combinations of volatile memory elements (e.g., random access memory, RAM, such as DRAM, SRAM, SDRAM, etc.) and nonvolatile memory elements (e.g., ROM, erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), tape, compact disc read only memory (CD-ROM), disk, diskette, cartridge, cassette or the like, etc.). Moreover, the memory 1312 may incorporate electronic, magnetic, optical, or other types of storage media. Note that the memory 1312 may have a distributed architecture, where various components are situated remote from one another but may be accessed by the processor 1305.

The instructions in memory 1312 may include one or more separate programs, each of which comprises an ordered listing of executable instructions for implementing logical functions. In the example of FIG. 13, the instructions in the memory 1312 include a suitable operating system (OS) 1311. The operating system 1311 essentially may control the execution of other computer programs and provides scheduling, input-output control, file and data management, memory management, and communication control and related services.

Additional data, including, for example, instructions for the processor 1305 or other retrievable information, may be stored in storage 1327, which may be a storage device such as a hard disk drive or solid state drive. The stored instructions in memory 1312 or in storage 1327 may include those enabling the processor to execute one or more aspects of the dispatch systems and methods of this disclosure.

The computer system 1300 may further include a display controller 1325 coupled to a display 1330. In an exemplary embodiment, the computer system 1300 may further include a network interface 1360 for coupling to a network 1365. The network 1365 may be an IP-based network for communication between the computer system 1300 and an external server, client and the like via a broadband connection. The network 1365 transmits and receives data between the computer system 1300 and external systems. In an exemplary embodiment, the network 1365 may be a managed IP network administered by a service provider. The network 1365 may be implemented in a wireless fashion, e.g., using wireless protocols and technologies, such as WiFi, WiMax, etc. The network 1365 may also be a packet-switched network such as a local area network, wide area network, metropolitan area network, the Internet, or other similar type of network environment. The network 1365 may be a fixed wireless network, a wireless local area network (LAN), a wireless wide area network (WAN) a personal area network (PAN), a virtual private network (VPN), intranet or other suitable network system and may include equipment for receiving and transmitting signals.

Systems and methods for providing a dynamically adjustable CRC rate and/or CRC type across a communication channel as described herein can be embodied, in whole or in part, in computer program products or in computer systems 1300, such as that illustrated in FIG. 13.

Various embodiments of the invention are described herein with reference to the related drawings. Alternative embodiments of the invention can be devised without departing from the scope of this invention. Various connections and positional relationships (e.g., over, below, adjacent, etc.) are set forth between elements in the following description and in the drawings. These connections and/or positional relationships, unless specified otherwise, can be direct or indirect, and the present invention is not intended to be limiting in this respect. Accordingly, a coupling of entities can refer to either a direct or an indirect coupling, and a positional relationship between entities can be a direct or indirect positional relationship. Moreover, the various tasks and process steps described herein can be incorporated into a more comprehensive procedure or process having additional steps or functionality not described in detail herein.

The following definitions and abbreviations are to be used for the interpretation of the claims and the specification. As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having,” “contains” or “containing,” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a composition, a mixture, process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but can include other elements not expressly listed or inherent to such composition, mixture, process, method, article, or apparatus.

Additionally, the term “exemplary” is used herein to mean “serving as an example, instance or illustration.” Any embodiment or design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms “at least one” and “one or more” may be understood to include any integer number greater than or equal to one, i.e. one, two, three, four, etc. The terms “a plurality” may be understood to include any integer number greater than or equal to two, i.e. two, three, four, five, etc. The term “connection” may include both an indirect “connection” and a direct “connection.”

The terms “about,” “substantially,” “approximately,” and variations thereof, are intended to include the degree of error associated with measurement of the particular quantity based upon the equipment available at the time of filing the application. For example, “about” can include a range of ±8% or 5%, or 2% of a given value.

For the sake of brevity, conventional techniques related to making and using aspects of the invention may or may not be described in detail herein. In particular, various aspects of computing systems and specific computer programs to implement the various technical features described herein are well known. Accordingly, in the interest of brevity, many conventional implementation details are only mentioned briefly herein or are omitted entirely without providing the well-known system and/or process details.

The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.

The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.

Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.

Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, to perform aspects of the present invention.

Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.

The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. 

What is claimed is:
 1. A computer-implemented method comprising: monitoring bits received at a receiver via a communication channel for transmission errors, the monitoring comprising: receiving frames of bits from a transmitter communicatively coupled to the receiver via the communication channel, at least one of the received frames comprising cyclic redundancy code (CRC) bits for a first type of CRC check; and determining whether a change in transmission errors has occurred in the received frames, the determining comprising performing the first type of CRC check based at least in part on the received CRC bits and payload bits in the received frames; and initiating, at the receiver, a change from the first type of CRC check to a second type of CRC check based at least in part on determining that a change in transmission error has occurred in the received frames, wherein the change is synchronized between the receiver and the transmitter, and performed in parallel with functional operations performed by the receiver.
 2. The computer-implemented method of claim 1, wherein the first type of CRC check performs frame isolation of errors and the second type of CRC check performs lane isolation of errors.
 3. The computer-implemented method of claim 1, further comprising, subsequent to initiating the change from the first type of CRC check to the second type of CRC check, initiating, at the receiver, a change from the second type of CRC check to the first type of CRC check based at least in part on determining that a second change in transmission errors has occurred, wherein the change from the second type of CRC check to the first type of CRC check is synchronized between the receiver and the transmitter.
 4. The computer-implemented method of claim 1, wherein the receiver is a distributed memory buffer, the transmitter is a host computer, the communication channel comprises a plurality of memory channels, and at least one of the plurality of memory channels is protected by the first type of CRC check and at least one of the other plurality of memory channels is protected by the second type of CRC check.
 5. The computer-implemented method of claim 1, wherein the receiver is a unified memory buffer, the transmitter is a host computer, and the communication channel is a memory channel.
 6. The computer-implemented method of claim 1, wherein frames of bits transmitted in different directions over the communication channel are protected by different types of CRC checks.
 7. The computer-implemented method of claim 1, wherein the change from the first type of CRC check to the second type of CRC check is performed in parallel with functional operations performed by the transmitter.
 8. The computer-implemented method of claim 1, further comprising: receiving a request from the transmitter to protect the memory channel using a third type of CRC check; and changing to the third type of CRC check at the receiver based on the request from the transmitter.
 9. The computer implemented method of claim 1, wherein the determining whether a change in transmissions errors has occurred in the received frames includes determining whether more than a threshold number of transmission errors have occurred in the received frames.
 10. A system comprising: a memory having computer readable instructions; and one or more processors for executing the computer readable instructions, the computer readable instructions controlling the one or more processors to perform operations comprising: monitoring bits received at a receiver via a communication channel for transmission errors, the monitoring comprising: receiving frames of bits from a transmitter communicatively coupled to the receiver via the communication channel, at least one of the received frames comprising cyclic redundancy code (CRC) bits for a first type of CRC check; and determining whether a change in transmission errors has occurred in the received frames, the determining comprising performing the first type of CRC check based at least in part on the received CRC bits and payload bits in the received frames; and initiating, at the receiver, a change from the first type of CRC check to a second type of CRC check based at least in part on determining that a change is transmission errors has occurred in the received frames, wherein the change is synchronized between the receiver and the transmitter, and performed in parallel with functional operations performed by the receiver.
 11. The system of claim 10, wherein the first type of CRC check performs frame isolation of errors and the second type of CRC check performs lane isolation of errors.
 12. The system of claim 10, wherein the operations further comprise, subsequent to initiating the change from the first type of CRC check to the second type of CRC check, initiating, at the receiver, a change to the first type of CRC check based at least in part on determining that a second change in transmission errors has occurred, wherein the change from the second type of CRC check to the first type of CRC check is synchronized between the receiver and the transmitter.
 13. The system of claim 10, wherein the receiver is a distributed memory buffer, the transmitter is a host computer, the communication channel comprises a plurality of memory channels, and at least one of the plurality of memory channels is protected by the first type of CRC check and at least one of the other plurality of memory channels is protected by the second type of CRC check.
 14. The system of claim 10, wherein the receiver is a unified memory buffer, the transmitter is a host computer, and the communication channel is a memory channel.
 15. The system of claim 10, wherein frames of bits transmitted in different directions over the communication channel are protected by different types of CRC checks.
 16. The system of claim 10, wherein the change to the second type of CRC check is performed in parallel with functional operations performed by the transmitter.
 17. The system of claim 10, wherein the operations further comprise: receiving a request from the transmitter to protect the memory channel using a third type of CRC check; and changing to the third type of CRC check at the receiver based on the request from the transmitter.
 18. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform operations comprising: monitoring bits received at a receiver via a communication channel for transmission errors, the monitoring comprising: receiving frames of bits from a transmitter communicatively coupled to the receiver via the communication channel, at least one of the received frames comprising cyclic redundancy code (CRC) bits for a first type of CRC check; and determining whether a change in transmission errors has occurred in the received frames, the determining comprising performing the first type of CRC check based at least in part on the received CRC bits and payload bits in the received frames; and initiating, at the receiver, a change from the first type of CRC check to a second type of CRC check based at least in part on determining that a change in transmission errors has occurred in the received frames, wherein the change is synchronized between the receiver and the transmitter, and performed in parallel with functional operations performed by the receiver.
 19. The computer program product of claim 18, wherein the receiver is a distributed memory buffer, the transmitter is a host computer, the communication channel comprises a plurality of memory channels, and at least one of the plurality of memory channels is protected by the first type of CRC check and at least one of the other plurality of memory channels is protected by the second type of CRC check.
 20. The computer program product of claim 18, wherein the receiver is a unified memory buffer, the transmitter is a host computer, and the communication channel is a memory channel. 